package com.lebang.mapper;

import com.lebang.domain.MemberClidkRouseRecord;
import com.lebang.example.MemberClidkRouseRecordExample;
import com.lebang.model.cences.RouseClickRecordCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * MemberClidkRouseRecordMapper继承基类
 */
@Mapper
public interface MemberClidkRouseRecordMapper extends MyBatisBaseDao<MemberClidkRouseRecord, Long, MemberClidkRouseRecordExample> {

    List<MemberClidkRouseRecord> selectAllData(@Param("appStore") String s, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("rouseId") Integer key);

    int checkClick(@Param("memberId") String memberId,@Param("rouseId") long rouseId,  @Param("date") LocalDate date);

    List<RouseClickRecordCount> countClickNum(@Param("star")  LocalDateTime star, @Param("end")  LocalDateTime end);

    List<MemberClidkRouseRecord> selectByDate(@Param("star") LocalDateTime star,@Param("end") LocalDateTime end);

    List<RouseClickRecordCount> selectGroupByRouseIdAndDay(@Param("star") LocalDateTime star,@Param("end") LocalDateTime end);
}